const merge = require('webpack-merge')
const webpack = require('webpack')

// FILE
const base = require('./webpack.base')
const devServer = require('./webpack.server')

module.exports = merge(base, {
  mode: 'development',
  devtool: 'inline-source-map',
  devServer: devServer,
  plugins: [
    new webpack.HotModuleReplacementPlugin(), //热更新插件
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('development')
    })
  ]
})
